package com.forever7776.life.core.mapper.shiro;

import com.forever7776.life.core.entity.shiro.ShiroAuthoritySetting;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author kz
 * @since 2018-01-18
 */
public interface ShiroAuthoritySettingMapper extends BaseMapper<ShiroAuthoritySetting> {

    /**
     * 查询shiro拦截权限
     *
     * @param status
     * @return
     */
    @Select("select url from shiro_authority_setting where status=#{status}")
    List<String> getUrls(@Param("status") Integer status);
}